翻訳と辞書
Words near each other
・ Comparison of wiki hosting services
・ Comparison of wiki software
・ Comparison of Windows Vista and Windows XP
・ Comparison of wireless data standards
・ Comparison of wireless LAN clients
・ Comparison of wireless site survey applications
・ Comparison of word processors
・ Comparison of World War I tanks
・ Comparison of X window managers
・ Comparison of X Window System desktop environments
・ Comparison of XML editors
・ Comparison of XMPP clients
・ Comparison of XMPP server software
・ Comparison of YouTube downloaders
・ Comparison shopping website
Comparison sort
・ Comparison test
・ Comparison theorem
・ Comparison triangle
・ Comparisons (TV series)
・ Comparisons between the Great Recession and the Great Depression
・ Comparisons between the National Football League and NCAA football
・ Compars Herrmann
・ Comparsa
・ Comparsa (album)
・ Compartamos Banco
・ Compartment
・ Compartment (chemistry)
・ Compartment (development)
・ Compartment (heraldry)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Comparison sort : ウィキペディア英語版
Comparison sort

A comparison sort is a type of sorting algorithm that only reads the list elements through a single abstract comparison operation (often a "less than or equal to" operator or a three-way comparison) that determines which of two elements should occur first in the final sorted list. The only requirement is that the operator obey two of the properties of a total order:
# if ''a'' ≤ ''b'' and ''b'' ≤ ''c'' then ''a'' ≤ ''c'' (transitivity)
# for all ''a'' and ''b'', either ''a'' ≤ ''b'' or ''b'' ≤ ''a'' (totalness or trichotomy).
It is possible that both ''a'' ≤ ''b'' and ''b'' ≤ ''a''; in this case either may come first in the sorted list. In a stable sort, the input order determines the sorted order in this case.
A metaphor for thinking about comparison sorts is that someone has a set of unlabelled weights and a balance scale. Their goal is to line up the weights in order by their weight without any information except that obtained by placing two weights on the scale and seeing which one is heavier (or if they weigh the same).
==Examples==

Some of the most well-known comparison sorts include:
*Quick sort
*Heap sort
*Merge sort
*Intro sort
*Insertion sort
*Selection sort
*Bubble sort
*Odd-even sort
*Cocktail sort
*Cycle sort
*Merge insertion (Ford-Johnson) sort
*Smoothsort
*Timsort

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Comparison sort」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.